﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ReadWriteStudentsInFile
{
    class Student
    {
        public string id;
        public string firstName;
        public string lastName;

        public Student()
        {

        }

        public Student(string id, string firstName, string lastName)
        {
            this.id = id;
            this.firstName = firstName;
            this.lastName = lastName;
        }

        public void AddStudentInfo()
        {
            Console.Write("Enter student id: ");
            id = Console.ReadLine();
            Console.Write("Enter first name: ");
            firstName = Console.ReadLine();
            Console.Write("Enter last name: ");
            lastName = Console.ReadLine();
        }
    }
}
